﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Pout_Porri.Objects.Interface;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;
using Pout_Porri.Utils;

namespace Pout_Porri.Objects
{
    class YellowDemon : PhysicsGameEntity, IGameEntity
    {
        private enum States { stand, openingEyes, eyesOpen, moving }
        private States currentState;

        /// <summary>Retangulo da imagem fonte</summary>
        Rectangle srcRect;

        public YellowDemon(Texture2D image, Vector2 position)
            : base(image, position, Vector2.Zero, false)
        {
            currentState = States.stand;
            this.texture = image;

            srcRect = new Rectangle(0, 0, 270, 246);
            this.disablePixelCollision = true;
        }

        public override void draw(SpriteBatch spriteBatch)
        {
            spriteBatch.Draw(texture, new Rectangle((int)position.X, (int)position.Y, srcRect.Width, srcRect.Height), srcRect, Color.White);
        }
    }
}
